<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body class="login-bg">

	<div class="login layui-anim layui-anim-up">
		<div class="message">管理登录</div>
		<div id="darkbannerwrap"></div>
		<form method="post" class="layui-form" onsubmit="return false">
			<input name="name" placeholder="用户名" type="text"
				 class="layui-input">
			<hr class="hr15">
			<input name="pwd"  placeholder="密码"
				type="password" class="layui-input">
			<hr class="hr15">
			<input value="登录"  style="width: 100%;"
				type="submit">
			<hr class="hr20">
		</form>
		<a href="Zhu.html">没有账号请注册</a><br>	
	<a href="Update.html">忘记密码，点此修改</a>
	</div>
	<script type="text/javascript" src="lay/jquery.min.js"></script>
<script type="text/javascript">
	$(function () {
		$(".layui-form").submit(function() {
			$.post(
				"deng",	
				$(this).serialize(),
				function(data) {
					if (data.success) {
						alert("登录成功");
						 window.location.href="home.html"; 
					}else{
						alert("登录失败");
					}
				}
			);
		})
	})
</script>
</body>
</html>